#include "staffform2.h"
#include "ui_staffform2.h"

staffForm2::staffForm2(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::staffForm2)
{
    ui->setupUi(this);
}

staffForm2::staffForm2(const QString &name, const QString &num, const double&price, QWidget *parent):
    QWidget(parent),
    ui(new Ui::staffForm2)
{
    ui->setupUi(this);

    ui->goodsNamelabel->setText(name);
    ui->amountLabel->setText(num);
    ui->singlePriceLabel->setNum(price);
}

staffForm2::~staffForm2()
{
    delete ui;
}
